//
//  WaitReviewViewController.m
//  RENTVISITOR
//
//  Created by wonder on 2017/9/1.
//  Copyright © 2017年 UNN. All rights reserved.
//

#import "WaitReviewViewController.h"
#import "RentVieitor.h"
#import "AuthStateViewController.h"

@interface WaitReviewViewController ()

@end

@implementation WaitReviewViewController

- (void)viewWillAppear:(BOOL)animated {
    
    self.navigationController.navigationBar.hidden = YES;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = BackgroundColor;
    [self creatLeftView];
    
}

- (void)creatLeftView {
    
    UIView *headView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, KWidth, 120)];
    headView.backgroundColor = [Utils colorConvertFromString:@"#1fae0c"];
    [self.view addSubview:headView];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(100, 20, KWidth-200, 40)];
    label.text = @"经纪人认证";
    label.textAlignment = NSTextAlignmentCenter;
    label.font = [UIFont systemFontOfSize:17];
    label.textColor = [UIColor whiteColor];
    [headView addSubview:label];
    // 自定义导航栏左侧按钮
    UIButton * leftBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    leftBtn.frame = CGRectMake(15, 20+12, 100,30);
    [leftBtn setImageEdgeInsets:UIEdgeInsetsMake(0, 0, 10, 90)];
    [leftBtn setImage:[UIImage imageNamed:@"箭头左-left"] forState:UIControlStateHighlighted];
    [leftBtn setImage:[UIImage imageNamed:@"箭头左-left"] forState:UIControlStateNormal];
    [leftBtn addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
    [headView addSubview:leftBtn];
    
    UIImageView *imgview = [[UIImageView alloc] initWithFrame:CGRectMake(0, 64, KWidth, KWidth*90/648)];
    imgview.image = [UIImage imageNamed:@"third_bd"];
    [headView addSubview:imgview];
    
    UILabel *firstLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 140, KWidth, 20)];
    firstLabel.text = @"第三步  等待审核";
    firstLabel.textAlignment = NSTextAlignmentCenter;
    firstLabel.font = [UIFont systemFontOfSize:17];
    firstLabel.textColor = [Utils colorConvertFromString:@"#101010"];
    [self.view addSubview:firstLabel];
    
    UILabel *secondLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 170, KWidth, 13)];
    secondLabel.text = @"你的信息已成功提交,我们将在一个工作日内";
    secondLabel.textAlignment = NSTextAlignmentCenter;
    secondLabel.font = [UIFont systemFontOfSize:13];
    secondLabel.textColor = [Utils colorConvertFromString:@"#666666"];
    [self.view addSubview:secondLabel];
    
    UILabel *secondLabel2 = [[UILabel alloc] initWithFrame:CGRectMake(0, 190, KWidth, 13)];
    secondLabel2.text = @"进行审核,请您耐心等候";
    secondLabel2.textAlignment = NSTextAlignmentCenter;
    secondLabel2.font = [UIFont systemFontOfSize:13];
    secondLabel2.textColor = [Utils colorConvertFromString:@"#666666"];
    [self.view addSubview:secondLabel2];
    
    UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake((KWidth-100)/2, 230, 100, 100)];
    imgView.image = [UIImage imageNamed:@"审核01"];
    [self.view addSubview:imgView];
    
    UIButton *changeBtn = [UIButton buttonWithType:UIButtonTypeSystem];
    changeBtn.frame = CGRectMake((KWidth-235)/2,375, 235, 40);
    [changeBtn setBackgroundColor:[Utils colorConvertFromString:@"#1fae0c"]];
    [changeBtn setTitle:@"完善个人信息" forState:UIControlStateNormal];
    [changeBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    changeBtn.layer.masksToBounds = YES;
    [changeBtn addTarget:self action:@selector(perfectAction) forControlEvents:UIControlEventTouchUpInside];
    changeBtn.layer.cornerRadius = 2;
    [self.view addSubview:changeBtn];


}

- (void)perfectAction {
    
    [self.navigationController popToRootViewControllerAnimated:YES];
}

- (void)submitAction {
    
}

- (void)backAction {
    [self.navigationController popToRootViewControllerAnimated:YES];
}

@end
